﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminMP.Master" AutoEventWireup="true"
    CodeBehind="tipoproduto.aspx.cs" Inherits="Admin.cadastros.tipoproduto" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" src="../scripts/jquery-ui-1.8.16.custom/js/jquery-ui-1.8.16.custom.min.js"></script>
    <link rel="stylesheet" type="text/css" href="../scripts/jquery-ui-1.8.16.custom/css/custom-theme/jquery-ui-1.8.16.custom.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="up1" runat="server">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnGravar" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="GridView1" EventName="RowUpdating" />
            <asp:AsyncPostBackTrigger ControlID="GridView1" EventName="RowEditing" />
            <asp:AsyncPostBackTrigger ControlID="GridView1" EventName="RowDeleting" />
        </Triggers>
        <ContentTemplate>
            <div style="margin-left:20%;padding-top:20px;">
                <span style="margin-left: 45px; margin-bottom: 45px;bottom:20px">
                    <asp:LinkButton ID="btnGravar" runat="server" OnClick="btnGravar_Click" Font-Bold="true"
                        ClientIDMode="Static">Novo</asp:LinkButton>
                </span>
                <br />
                <br />  
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="TppID"
                    OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowDeleting="GridView1_RowDeleting"
                    OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" CssClass="tabela"
                    BorderWidth="0" RowStyle-BorderWidth="0" BackColor="White">
                    <Columns>
                        <asp:CommandField HeaderText="Editar" ShowEditButton="True" CancelText="Cancelar"
                            EditText="Editar" />
                        <asp:BoundField DataField="TppID" HeaderText="ID" ReadOnly="True" />
                        <asp:BoundField DataField="TppDes" HeaderText="Tipo do Produto" />
                        <asp:CommandField HeaderText="Excluir" ShowDeleteButton="True" />
                    </Columns>
                </asp:GridView>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
